package com.miao.im.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.miao.im.common.enums.Gender;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/4/11 22:31
 * @Description:
 */
@Data
public class UserRespDto implements Serializable {
    private Long id;
    private String username;
    private String nickname;
    /**性别 {@link Gender}*/
    private Integer gender;
    /**头像*/
    private String avatar;
    /**最后一次登录时间*/
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;
    /**创建时间*/
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private String sessionId;
    private String deviceNumber;
}
